package com.hnkywl.sts.entity.htgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.organ.Gsjg;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 保证金存款利率
 */
@Entity
@Table(name = "T_BIZ_BZJCKLL")
@Where(clause = "deleted!='1'")
public class Bzjckll extends BaseEntity{

    @Id
    @SequenceGenerator(name = "seqBzjckll", allocationSize = 1, sequenceName = "SEQ_BIZ_BZJCKLL")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqBzjckll")
    private Long id;
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "GS_ID")
    @Where(clause = "deleted!='1'")
    private Gsjg gs;
    /**
     * 更新日期
     */
    private Date rq;
    /**
     * 存款利率
     */
    private BigDecimal ckll;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getRq() {
        return rq;
    }

    public void setRq(Date rq) {
        this.rq = rq;
    }

    public BigDecimal getCkll() {
        return ckll;
    }

    public void setCkll(BigDecimal ckll) {
        this.ckll = ckll;
    }

    public Gsjg getGs() {
        return gs;
    }

    public void setGs(Gsjg gs) {
        this.gs = gs;
    }
}
